package com.xone.xapp;

import org.json.JSONObject;

public class BannerListUserHolder extends BasicListHolder {
	protected String id;
	protected String adRefId;
	protected String dateCreated;
	public BannerListUserHolder(JSONObject jSONObject) {
		id = JSONUtils.getStringFromJSONObject(jSONObject, "id");
		adRefId = JSONUtils.getStringFromJSONObject(jSONObject, "adRefId");
		dateCreated = StringUtils.formatStringDate(JSONUtils.getStringFromJSONObject(jSONObject, "dateCreated"));
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAdRefId() {
		return adRefId;
	}
	public void setAdRefId(String adRefId) {
		this.adRefId = adRefId;
	}
	public void setDateCreated(String dateCreated) {
		this.dateCreated = dateCreated;
	}
	@Override
	public String getDateCreated() {
		return dateCreated;
	}
	@Override
	public String getDataCreatedName() {
		return "adbanner.dateCreated";
	}

}
